



# 编译静态库
#   -q 表示想已经存在的静态文件追加 .o 文件
#
$(lib_static):
	@echo " ===========> static $(lib_static) " 
	$(if $(KBUILD_VERBOSE:1=),@) ar -qcv $@ $(OBJS_CPP) $(OBJS_CC) $(OBJS_C)
	@ # 更新静态库的符号索引表 
	$(if $(KBUILD_VERBOSE:1=),@) ranlib $@

# 编译动态库
$(lib_dynamic):
	@echo " ===========> dynamic  $(lib_dynamic) "   
	$(if $(KBUILD_VERBOSE:1=), @)  $(CC) $(CFLAGS) -shared -o  $@ $(OBJS_CPP) $(OBJS_CC) $(OBJS_C) $(LDFLAGS) $(LD_PATH) $(LD_LIB)

# 编译程序
$(program):
	@echo " ===========>  program  $(program) "   
	$(if $(KBUILD_VERBOSE:1=), @) $(CC) -o $(program) $(CFLAGS) $(OBJS_CPP) $(OBJS_CC) $(OBJS_C) $(LDFLAGS) $(LD_PATH) $(LD_LIB)


